package com.qh.yyxt.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Borrow
{
    //记录id
    private Integer id;
    //用户id
    private Integer uid;
    //会议室id
    private Integer mid;
    //会议名称
    private String name;
    //会议内容
    private String text;
    //开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date starttime;
    //结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endtime;
    //申请提交时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;
    //参会人数
    private Integer num;
    //联系方式
    private String tel;
    //备注
    private String mes;
    //经办人
    private String handler;
    //预计请的领导
    private String leader;
    //负责人
    private String director;
    //话筒数量
    @TableField(value = "micro_num")
    private Integer microNum;
    //无线话筒数量
    @TableField(value = "wireless_num")
    private Integer wirelessNum;
    //茶杯数量
    @TableField(value = "cup_num")
    private Integer cupNum;
    //学校疫情防控工作领导小组备案情况
    private String control;
    //公安处备案情况
    private String security;
    //状态:待审批、审批通过、已撤销、会议结束、未通过、撤销待审批
    private String state;
    public void setByBorrow(Borrow b)
    {
        this.setWirelessNum(b.getWirelessNum());
        this.setUid(b.getUid());
        this.setMid(b.getMid());
        this.setName(b.getName());
        this.setText(b.getText());
        this.setStarttime(b.getStarttime());
        this.setEndtime(b.getEndtime());
        this.setNum(b.getNum());
        this.setMicroNum(b.getMicroNum());
        this.setCupNum(b.getCupNum());
        this.setControl(b.getControl());
        this.setLeader(b.getLeader());
        this.setDirector(b.getDirector());
        this.setTel(b.getTel());
        this.setSecurity(b.getSecurity());
    }



}
